package part1.api.io.iotest;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

public class FISDemo {
    public static void main(String[] args) throws IOException {
//        File file = new File("abc.txt");
//        FileInputStream fis = new FileInputStream(file);
//        int a = fis.read();
//        System.out.println(a);
//        a = fis.read();
//        System.out.println(a);
//        fis.close();


        File file = new File("fot.txt");
        FileInputStream fis = new FileInputStream(file);
        int a = fis.read();
        System.out.println(a);
        a = fis.read();
        System.out.println(a);
        fis.close();
    }
}
